<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>艺术家发布成功</title>
<link href="../style/css_member.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/common.js"></script>
<script src="../js/artDialog.js?skin=gray"></script>
<script src="../js/artDialog.iframeTools.js"></script>
<script type="text/javascript" src="../js/jquery-1.3.2.js"></script>

<script type="text/javascript">

$(function(){
	$("a[name='addPaintingHref']").click(function(){
		art.dialog.open('${ctx }/painting/addPrepareByPainter.do?painter_Id=${p.id }',{title:'添加作品',width:820,height:550,lock:true},false);
    });

	m2('m1_002','m1_002_01');
});

/**修改艺术家基本信息 **/
function modify(id){
	art.dialog.open('${ctx}/painter/modifyPrepare.do?painter.id='+id,{title:'修改艺术家资料',width:820,height:600,lock:true},false);
}

function showNextPagePic(flag){

	var totalPages = document.getElementById("totalPages_Hidden").value;
	var cur_No = document.getElementById("curPage").value;

	if(totalPages == "" || cur_No == ""){
		return ;
	}
	if(flag>0){
		cur_No = parseInt(cur_No) + 1;
		var total_len = '${fn:length(page.result)}';
		if(parseInt(total_len) == 8){
			if(cur_No <= parseInt(totalPages)+1){
				document.getElementById("curPage").value = cur_No;
			}else{
				cur_No = totalPages;
			}
		}
		else if(parseInt(total_len) < 8){
			if(cur_No <= parseInt(totalPages)){
				document.getElementById("curPage").value = cur_No;
			}else{
				cur_No = totalPages;
			}
		}
	}else{
		cur_No = parseInt(cur_No) - 1;
		if(cur_No > 0 ){
			document.getElementById("curPage").value = cur_No;
		}else{
			cur_No = 1;
		}
	}
	
	var x = document.forms[0];
	x.submit();
}

</script>

</head>
<body>

<!-- 页面头部  -->
<jsp:include page="/commons/head_member.jsp"></jsp:include>

<table width="960" border="0" cellspacing="0" cellpadding="0" align="center"  class="tbl_border_top">
              <tr>
                <td class="bt14A" colspan="100%" align="center">艺术家基本资料</td>
              </tr>
              <tr>
                <td class="bt14A" align="right"><span class="style15">*</span> 艺术门类：</td>
                <td class="bt14A">${ p.catalogType.name }</td>
                <td width="160" rowspan="10" valign="top" class="bt14A" align="left">
                    <table width="150" height="184" border="0" cellpadding="0" cellspacing="1" bordercolor="#CCCCCC" bgcolor="#CCCCCC">
                      <tr>
                        <td bgcolor="#FFFFFF">
                        	 <div id="photoTd" style="width: 150px;height: 184px;">
                        	 	<span><img src="${p.originalImagePath }" border="0" width="147" height="181"></span>
                        	 </div></td>
                      </tr>
                    </table>
                </td>
                </tr>
              <tr>
                <td class="bt14A" align="right"><span class="style15">*</span> 艺术家姓名：</td>
                <td class="bt14A">${p.name }&nbsp;&nbsp;（字：${p.zi }&nbsp;&nbsp;号：${p.hao }）</td>
                <td></td>
              </tr>
              <tr>
                <td class="bt14A" align="right"><span class="style15">*</span> 年 龄：</td>
                <td class="bt14A">${p.age }年生</td>
                <td></td>
                </tr>
              <tr>
                <td class="bt14A" align="right">毕业院校：</td>
                <td class="bt14A">${p.graduatedFrom }</td>
                <td></td>
                </tr>
              <tr>
                <td class="bt14A" align="right">职业/头衔：</td>
                <td class="bt14A">${p.honour }</td>
                <td></td>
              </tr>
              <tr>
                <td class="bt14A" align="right"><span class="style15">* </span>所在地：</td>
                <td class="bt14A"> ${p.provinceInfo.name }&nbsp;&nbsp; ${p.cityInfo.name }</td>
                <td></td>
              </tr>
              <tr>
                <td class="bt14A" align="right"><span class="style15">*</span> 艺术人生：</td>
                <td class="bt14A" colspan="2"><textarea rows="8" cols="80">${ p.description }</textarea></td>
             </tr>
          	<tr><td width="180"></td>
                 <td class="nw12a" width="550">
               		 <a href="javascript:modify(${p.id });">
               			 <img border="0" src="../images/an41.gif" width="106" height="31" style="cursor: pointer"/>
               		 </a>
                </td>
                <td></td>
          </tr>
</table>

<%@ include file="/member/list_painting_fragment.jsp" %>

<jsp:include page="/commons/foot_member.jsp"></jsp:include>

</body>
</html>